package server;

import java.util.HashMap;
import java.util.Map;

public class Engine {

    private Map<String, Host> hosts = new HashMap<>();

    public void addHost(String name, Host host) {
        hosts.putIfAbsent(name, host);
    }

    public void rmHost(String name) {
        hosts.remove(name);
    }

    public Host getHost(String name) {
        return hosts.get(name);
    }
}
